const { parallel, series } = require('gulp')
const prod = require('./gulp.prod')
const {
    html,
    assets,
    copyThemefiles,
    index,
    injectHTML,
    server,
    watchChange,
} = require('./gulp.dev')

// 生产环境
exports.build = parallel(...prod)

// 开发环境 已弃用. 
// 使用 webpack 重新构建.
// 2.0: https://gitee.com/guangzan/awescnb2.0
exports.server = series(
    parallel(html, assets, copyThemefiles, index),
    injectHTML,
    parallel(server, watchChange)
)
